// 分页组件
<template>
  <div class="page">
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage"
        :page-sizes="[15, 30, 50]"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total">
      </el-pagination>
    </div>
  </div>
</template>

<script>
  export default {
    props:['total'],
    methods: {
      handleSizeChange(val) {
        this.$emit('pageSize',val);
      },
      handleCurrentChange(val) {
        this.$emit('pageNo',val);
      }
    },
    data() {
      return {
        currentPage: 1,
      };
    }
  }
</script>
<style>

</style>
